package me.stephenj.contactsweb.model;

import me.stephenj.contactsweb.utils.DateConverter;

import java.util.Date;

public class TestVO {
    private String avatar;
    private Long ID;
    private String lastname;
    private String firstname;
    private String phone1;
    private String phone2;
    private String phone3;
    private String email;
    private String address;
    private String qq;
    private String wechat;
    private Date birthday;

    public TestVO() {
    }

    public TestVOJson exportJson() {
        TestVOJson testVOJson = new TestVOJson();
        testVOJson.setAvatar(this.avatar);
        testVOJson.setID(this.ID);
        testVOJson.setLastname(this.lastname);
        testVOJson.setFirstname(this.firstname);
        testVOJson.setPhone1(this.phone1);
        testVOJson.setPhone2(this.phone2);
        testVOJson.setPhone3(this.phone3);
        testVOJson.setEmail(this.email);
        testVOJson.setAddress(this.address);
        testVOJson.setQq(this.qq);
        testVOJson.setWechat(this.wechat);
        if (this.birthday != null) {
            testVOJson.setBirthday(new DateConverter().getSimpleDateFormat().format(this.birthday));
        }
        return testVOJson;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Long getID() {
        return ID;
    }

    public void setID(Long ID) {
        this.ID = ID;
    }

    public String getLastname() {
        return lastname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getPhone1() {
        return phone1;
    }

    public void setPhone1(String phone1) {
        this.phone1 = phone1;
    }

    public String getPhone2() {
        return phone2;
    }

    public void setPhone2(String phone2) {
        this.phone2 = phone2;
    }

    public String getPhone3() {
        return phone3;
    }

    public void setPhone3(String phone3) {
        this.phone3 = phone3;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
